<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>定时任务日志</title>
</head>
<style>
    body{background:#F2F2F2;overflow:hidden}
    *{font-size: 12px;}
    .execButtonBar {background:#fff; display:flex; justify-content:space-between; height:4vh}
    .execButtonBar .title, .actions{display:flex;align-items:center; }
    .execButtonBar .title{font-weight:bold;}
    .execButtonBar .actions a{margin:0 0.1em; color:#fff; text-decoration-line:none; font-weight:bold; cursor:pointer; display:inline-block; width:4em; height:2em; text-align:center; line-height:2em; background:#4A90E2; }
    .execButtonBar .actions a:hover{background:#7EB7FA}
    #queryForm{background:#fff; margin: 0.3vh 0; padding:0 1em; height:3.5vh; line-height:3.5vh}
    .pagination{margin: 0.7vh 0 0 0}
    .tableData {width:100%; overflow-x:auto; overflow-y:auto; max-height:86.9vh;}
    table {table-layout: fixed;}
    table tr th {border-bottom: 1px solid #aaaaaa; background: #4A90E2; color: #fff; height:2em;}
    table tr td {border-bottom: 1px solid #cccccc;}
    .odd{background: #96c6f742}
    .even{background: #fffb7a30}
</style>

<body th:with="nowDate=${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}">
<div class="execButtonBar">
    <div class="title">定时任务日志 ></div>
    <div class="actions">
    </div>
</div>
<div th:replace="/common/page::page"></div>
<div class="tableData">
<table>
    <thead>
        <tr>
            <th th:text="序号">count</th>
            <th th:text="日志Id">logId</th>
            <th th:text="任务ID">jobId</th>
            <th th:text="任务名">jobName</th>
            <th th:text="glueType">glueType</th>
            <th th:text="beanName">beanName</th>
            <th th:text="类路径">className</th>
            <th th:text="方法">method</th>
            <th th:text="参数">params</th>
            <th th:text="cron表达式">cron</th>
            <th th:text="执行类型">execType</th>
            <th th:text="执行结果">execStatus</th>
            <th th:text="执行节点">host</th>
            <th th:text="执行开始时间">created</th>
            <th th:text="执行结束时间">updated</th>
            <th th:text="预警邮件">mailTmpCode</th>
        </tr>

    </thead>
    <tbody>
        <tr th:each="baseJobLog,iterStat: ${page.records}"  th:class="${iterStat.odd}? 'odd':'even'">
            <td th:text="${iterStat.count}">count</td>
            <td th:text="${baseJobLog.logId}">logId</td>
            <td th:text="${baseJobLog.jobId}">jobId</td>
            <td th:text="${baseJobLog.jobName}">jobName</td>
            <td th:text="${baseJobLog.glueType}">glueType</td>
            <td th:text="${baseJobLog.beanName}">beanName</td>
            <td th:text="${baseJobLog.className}">className</td>
            <td th:text="${baseJobLog.method}">method</td>
            <td th:text="${baseJobLog.params}">params</td>
            <td th:text="${baseJobLog.cron}">cron</td>
            <td>
                <span th:if="${baseJobLog.execType} eq 1" th:text="自动">execType</span>
                <span th:if="${baseJobLog.execType} eq 2" th:text="手动">execType</span>
            </td>
            <td>
                <span th:if="${baseJobLog.execStatus} eq 1">
                    <a th:href="@{/admin/job/getJobLogDetail(logId=${baseJobLog.logId})}" target="_self">成功</a>
                </span>
                <span th:if="${baseJobLog.execStatus} eq 0">
                    <a th:href="@{/admin/job/getJobLogDetail(logId=${baseJobLog.logId})}" target="_self">失败</a>
                </span>
            </td>
            <td th:text="${baseJobLog.host}">host</td>
            <td th:text="${baseJobLog.created}">created</td>
            <td th:text="${baseJobLog.updated}">updated</td>
            <td th:text="${baseJobLog.mailTmpCode}">mailTmpCode</td>
        </tr>
    </tbody>
</table>
</div>
</body>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    /*]]>*/
</script>
</html>
